Optimal. Leaf size=79 \[ \frac{i \left (i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \text{Gamma}\left (n+1,i \sin ^{-1}(a x)\right )}{2 a}-\frac{i \left (-i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \text{Gamma}\left (n+1,-i \sin ^{-1}(a x)\right )}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0546235, antiderivative size = 79, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {4623, 3307, 2181} \[ \frac{i \left (i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \text{Gamma}\left (n+1,i \sin ^{-1}(a x)\right )}{2 a}-\frac{i \left (-i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \text{Gamma}\left (n+1,-i \sin ^{-1}(a x)\right )}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4623
Rule 3307
Rule 2181
Rubi steps
\begin{align*} \int \sin ^{-1}(a x)^n \, dx &=\frac{\operatorname{Subst}\left (\int x^n \cos (x) \, dx,x,\sin ^{-1}(a x)\right )}{a}\\ &=\frac{\operatorname{Subst}\left (\int e^{-i x} x^n \, dx,x,\sin ^{-1}(a x)\right )}{2 a}+\frac{\operatorname{Subst}\left (\int e^{i x} x^n \, dx,x,\sin ^{-1}(a x)\right )}{2 a}\\ &=-\frac{i \left (-i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \Gamma \left (1+n,-i \sin ^{-1}(a x)\right )}{2 a}+\frac{i \left (i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \Gamma \left (1+n,i \sin ^{-1}(a x)\right )}{2 a}\\ \end{align*}
Mathematica [A] time = 0.035468, size = 73, normalized size = 0.92 \[ \frac{i \sin ^{-1}(a x)^n \left (\sin ^{-1}(a x)^2\right )^{-n} \left (\left (-i \sin ^{-1}(a x)\right )^n \text{Gamma}\left (n+1,i \sin ^{-1}(a x)\right )-\left (i \sin ^{-1}(a x)\right )^n \text{Gamma}\left (n+1,-i \sin ^{-1}(a x)\right )\right )}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.082, size = 240, normalized size = 3. \begin{align*}{\frac{{2}^{n}\sqrt{\pi }}{a} \left ({\frac{{2}^{-1-n} \left ( \arcsin \left ( ax \right ) \right ) ^{n} \left ( 6+2\,n \right ) ax}{\sqrt{\pi } \left ( 1+n \right ) \left ( 3+n \right ) }}+{\frac{ \left ( \arcsin \left ( ax \right ) \right ) ^{n}{2}^{-n}}{\sqrt{\pi } \left ( 1+n \right ) \left ({a}^{2}{x}^{2}-1 \right ) }\sqrt{-{a}^{2}{x}^{2}+1} \left ({a}^{2}{x}^{2}\arcsin \left ( ax \right ) -\arcsin \left ( ax \right ) +ax\sqrt{-{a}^{2}{x}^{2}+1} \right ) }+{\frac{{2}^{-n}nax}{\sqrt{\pi } \left ( 1+n \right ) }\sqrt{\arcsin \left ( ax \right ) }{\it LommelS1} \left ( n+{\frac{1}{2}},{\frac{3}{2}},\arcsin \left ( ax \right ) \right ) }-{\frac{{2}^{-n}}{\sqrt{\pi } \left ( 1+n \right ) \left ({a}^{2}{x}^{2}-1 \right ) }\sqrt{-{a}^{2}{x}^{2}+1} \left ({a}^{2}{x}^{2}\arcsin \left ( ax \right ) -\arcsin \left ( ax \right ) +ax\sqrt{-{a}^{2}{x}^{2}+1} \right ){\it LommelS1} \left ( n+{\frac{3}{2}},{\frac{1}{2}},\arcsin \left ( ax \right ) \right ){\frac{1}{\sqrt{\arcsin \left ( ax \right ) }}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\arcsin \left (a x\right )^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \operatorname{asin}^{n}{\left (a x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \arcsin \left (a x\right )^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]